package com.md.annotation;

import com.md.config.database.sharding.ShardingJdbcConfig;
import org.apache.shardingsphere.shardingjdbc.orchestration.spring.boot.OrchestrationSpringBootConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Import;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author 刘骄阳
 * 2024-10-23 15:09
 */
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@EnableConfigurationProperties(ShardingJdbcConfig.class)
@Import(OrchestrationSpringBootConfiguration.class)
public @interface EnableShardingSphere {
}
